﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace caculate
{
    public partial class parent_operate : Form
    {
        public parent_operate()
        {
            InitializeComponent();
        }

        private void parent_operate_FormClosed(object sender, FormClosedEventArgs e)
        {
            Form1 frm_prtlogin;
            frm_prtlogin = (Form1)this.Owner;
            frm_prtlogin.Show();
        }

        private void backward_Click(object sender, EventArgs e)
        {
            Form1 frm_prtlogin;
            frm_prtlogin = (Form1)this.Owner;
            frm_prtlogin.Show();
            this.Close();
        }

        private void problems_Click(object sender, EventArgs e)
        {
            this.panel1.Controls.Clear();
            Parent_Problems frm = new Parent_Problems() { TopLevel = false, FormBorderStyle = FormBorderStyle.None };
            this.panel1.Controls.Add(frm);
            frm.Show();
        }

        private void powerchange_Click(object sender, EventArgs e)
        {
            this.panel1.Controls.Clear();
            Form2 frm = new Form2() { TopLevel = false, FormBorderStyle = FormBorderStyle.None };
            this.panel1.Controls.Add(frm) ;
            frm.Show();
        }

        private void parent_operate_Load(object sender, EventArgs e)
        {

        }
    }
}
